package com.gexin.common;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;

import com.gexin.common.model.RetValue;
import com.gexin.common.utils.StringUtil;

/**
 * 网站常量存放的地方
 * @author 肖得明
 *
 */
public class AppConst {
	
	//定义一个测试的map 对象
	public static final Map<Object,Object> testmap=gettestmap();
	public static final List<RetValue> testlist=StringUtil.maptolist(testmap);
	//给他初始化的指
	private static Map<Object,Object> gettestmap(){
		Map<Object,Object> temp =new LinkedHashMap<Object, Object>();
		temp.put("1", "测试标题1");
		temp.put("2", "测试标题2");
		temp.put("3", "测试标题3");
		temp.put("4", "测试标题32");
		return temp;
	}

	
	
	// 定义一个测试的map 对象
		public static final Map<Object, String> ApiErrorMessage = getApiErrorMessage();

		// 给他初始化的指
		private static Map<Object, String> getApiErrorMessage() {
			Map<Object, String> temp = new LinkedHashMap<Object, String>();
			temp.put(0, "正常");
			temp.put(500, "服务器内部错误！");
			temp.put(101, "Token,或Userid参数不能为空!");
			temp.put(102, "你的账号已经在其他手机上登陆，请重新登陆!");
			return temp;
		}
		
	
	public static final Map<Object,Object> LogLevel=getLogLevel();
	private static Map<Object,Object> getLogLevel(){
		Map<Object,Object> temp =new LinkedHashMap<Object, Object>();
		temp.put("info", "一般");
		temp.put("wanring", "警告");
		temp.put("error", "错误");
		return temp;
	}
	
	
	
	public static final Map<Object,Object> WuLiao_State=getProduct_Lable();
	private static Map<Object,Object> getProduct_Lable(){
		Map<Object,Object> temp =new LinkedHashMap<Object, Object>();
		temp.put("", "无标签");
		temp.put("new", "新品上市");
		temp.put("hot", "热门商品");
		temp.put("pro", "促销");
		return temp;
	}
	
	public static final Map<Object,Object> Discount_Code_State=getDiscount_Code_State();
	private static Map<Object,Object> getDiscount_Code_State(){
		Map<Object,Object> temp =new LinkedHashMap<Object, Object>();
		temp.put("0", "未使用");
		temp.put("1", "已使用");
		return temp;
	}
	
	public static final Map<Object,Object> Wl_Check_State=getWl_Check_State();
	private static Map<Object,Object> getWl_Check_State(){
		Map<Object,Object> temp =new LinkedHashMap<Object, Object>();
		temp.put("检验合格", "检验合格");
		temp.put("等待检验", "等待检验");
		return temp;
	}
	
	public static final Map<Object,Object> Product_Type=getProduct_Type();
	private static Map<Object,Object> getProduct_Type(){
		Map<Object,Object> temp =new LinkedHashMap<Object, Object>();
		temp.put("1", "实体商品");
		temp.put("2", "虚拟物品");
		return temp;
	}
	
	public static final Map<Object,Object> sexmap=getsexmap();
	private static Map<Object,Object> getsexmap(){
		Map<Object,Object> temp =new LinkedHashMap<Object, Object>();
		temp.put("0", "未知");
		temp.put("1", "男");
		temp.put("2", "女");
		return temp;
	}
	

	public static final Map<Object,Object> user_role=geuser_role();
	private static Map<Object,Object> geuser_role(){
		Map<Object,Object> temp =new LinkedHashMap<Object, Object>();
		temp.put("2", "管理员");
		temp.put("1", "普通用户 ");
		return temp;
	}
	
	public static final Map<Object,Object> Task_State=getTask_State();
	private static Map<Object,Object> getTask_State(){
		Map<Object,Object> temp =new LinkedHashMap<Object, Object>();
		temp.put(1, "未完成");
		temp.put(2, "已完成");
		temp.put(3, "已加入购物车");
		temp.put(4, "待提交支付");
		temp.put(5, "待支付订单");
		return temp;
	}
	
	//常用的禁用 ?/启用
	public static final Map<Object,Object> state=getbstate();
	private static Map<Object,Object> getbstate(){
		Map<Object,Object> temp =new LinkedHashMap<Object, Object>();
		temp.put(0, "启用");
		temp.put(1, "禁用");
		return temp;
	}
	
	//流量套餐类型
	public static final Map<Object,Object> flowtype=getflowtype();
	private static Map<Object,Object> getflowtype(){
		Map<Object,Object> temp =new LinkedHashMap<Object, Object>();
		temp.put("yd", "中国移动");
		temp.put("lt", "中国联通");
		temp.put("dx", "中国电信");
		return temp;
	}


	/**
	 * 全国开户行名称
	 */
	public static final Map<Object,Object> Express=getExpress();
	private static Map<Object,Object> getExpress(){
		Map<Object, Object> temp = new LinkedHashMap<Object, Object>();
		temp.put("shunfeng", "顺丰快递");
		temp.put("ems", "邮政EMS");
		temp.put("yuantong", "圆通快递");
		temp.put("shentong", "申通快递");
		temp.put("yunda", "韵达快递");
		temp.put("tiantian", "天天快递");
		temp.put("zhongtong", "中通快递 ");
		temp.put("huitong", "百世汇通");
		temp.put("debang", "德邦快递 ");
		temp.put("zhaijisong", "宅急送");
		return temp;
	}
	
	/**
	 * 订单状态
	 */
	public static final Map<Object,Object> Procuct_State=getProcuct_State();
	private static Map<Object,Object> getProcuct_State(){
		Map<Object,Object> temp =new LinkedHashMap<Object, Object>();
		temp.put("0", "未支付");
		temp.put("1", "等待发货");
		temp.put("2", "已发货");
		temp.put("3", "完成");
		temp.put("4", "已退款");
		temp.put("5", "已关闭");
		temp.put("6", "申请退款");
		temp.put("7", "申请维权");
		return temp;
	}
	
	/**
	 * 全国开户行名称
	 */
	public static final Map<Object,Object> BnakNameList=getBnakNameList();
	private static Map<Object,Object> getBnakNameList(){
		Map<Object,Object> temp =new LinkedHashMap<Object, Object>();
		temp.put("中国工商银行", "中国工商银行");
		temp.put("招商银行", "招商银行");
		temp.put("中国农业银行", "中国农业银行");
		temp.put("中国建设银行", "中国建设银行");
		temp.put("中国银行", "中国银行");
		temp.put("中国民生银行", "中国民生银行");
		temp.put("交通银行 ", "交通银行");
		temp.put("兴业银行", "兴业银行");
		temp.put("上海浦东发展银行", "上海浦东发展银行");
		temp.put("中国邮政储蓄银行", "中国邮政储蓄银行");
		temp.put("广东发展银行", "广东发展银行");
		return temp;
	}
	
	/**
	 * 人员进出状态
	 */
	public static final Map<Object,Object> flag_State=flag_State();
	private static Map<Object,Object> flag_State(){
		Map<Object,Object> temp =new LinkedHashMap<Object, Object>();
		temp.put("0", "进");
		temp.put("1", "出");
		return temp;
	}

	/**
	 * 订单状态
	 */
	public static final Map<Object, Object> Refund_State = getRefund_State();

	private static Map<Object, Object> getRefund_State() {
		Map<Object, Object> temp = new LinkedHashMap<Object, Object>();
		temp.put(1, "申请退款中");
		temp.put(11, "商家已同意退款，请退货给商家");
		temp.put(12, "等待商家收货后退款");
		temp.put(2, "申请退款中");
		temp.put(3, "已拒绝退款");
		temp.put(4, "已拒绝退款");
		temp.put(77, "已同意退款");
		temp.put(5, "退款完成");
		return temp;
	}

	/**
	 * 下单的方式 1 微信公众号 2APP 3网页
	 */
	public static final Map<Object, Object> Order_Platform = getOrder_Platform();

	private static Map<Object, Object> getOrder_Platform() {
		Map<Object, Object> temp = new LinkedHashMap<Object, Object>();
		temp.put("1", "小程序");
		temp.put("2", "APP");
		temp.put("3", "网页H5");
		return temp;
	}

	// 商品状态
	public static final Map<Object, Object> Pdd_Interface_State = getPdd_Interface_State();

	private static Map<Object, Object> getPdd_Interface_State() {
		Map<Object, Object> temp = new LinkedHashMap<Object, Object>();
		temp.put(1, "等待推送");
		temp.put(2, "已经推送");
		temp.put(3, "下单成功");
		temp.put(5, "已经发货");
		temp.put(6, "等待支付");
		temp.put(3, "下单成功");
		temp.put(96, "拼团中");
		temp.put(97, "订单已经取消");
		temp.put(99, "等待支付");
		temp.put(98, "等待发货");
		temp.put(-1, "未知");
		return temp;
	}

	/**
	 * 支付方式
	 */
	public static final Map<Object, Object> Pay_Type = getPay_Type();

	private static Map<Object, Object> getPay_Type() {
		Map<Object, Object> temp = new LinkedHashMap<Object, Object>();
		temp.put(1, "微信支付");
		temp.put(2, "积分兑换");
		temp.put(3, "支付宝");
		temp.put(4, "微信APP支付");
		temp.put(5, "微信支付");
		return temp;
	}

	// 商品状态
	public static final Map<Object, Object> Pro_State = getPro_State();

	private static Map<Object, Object> getPro_State() {
		Map<Object, Object> temp = new LinkedHashMap<Object, Object>();
		temp.put("1", "上架");
		temp.put("2", "下架");
		return temp;
	}

	// 给他初始化的值
	public static final Map<Object, Object> Product_Attr_Type = getGroupProductAttr_type();

	private static Map<Object, Object> getGroupProductAttr_type() {
		Map<Object, Object> temp = new LinkedHashMap<Object, Object>();
		temp.put("1", "普通商品");
		temp.put("2", "敬请期待");
		temp.put("6", "注册商品");
		return temp;
	}

	public static final Map<Object, Object> Refund_Type = getRefund_Type();

	private static Map<Object, Object> getRefund_Type() {
		Map<Object, Object> temp = new LinkedHashMap<Object, Object>();
		temp.put("1", "买错/不想要");
		temp.put("2", "商品质量有问题");
		temp.put("3", "未按约定时间发货");
		temp.put("4", "快递一直未到");
		temp.put("5", "其他");
		return temp;
	}

	/**
	 * 退款状态
	 */
	public static final Map<Object, Object> Item_Refund_State = getItem_Refund_Stat();

	private static Map<Object, Object> getItem_Refund_Stat() {
		Map<Object, Object> temp = new LinkedHashMap<Object, Object>();
		temp.put("1", "正常");
		temp.put("2", "申请退款中");
		temp.put("3", "同意退款");
		temp.put("4", "拒绝退款");
		temp.put("5", "退款完成");
		return temp;
	}


}
